﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using mobliebo;

namespace mobileshopping
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        smartphone_info smart = new smartphone_info();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable dt = smart.GetRcords(-99, "", "", -99, "1/1/1800", -99, -99, 1800, "", -99, "", "", "", "", false, " and ");
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            smart.phone_id = -99;
            smart.name = ddlphonename.SelectedValue.ToString();
            smart.model = ddlmodel.SelectedValue.ToString();
            smart.MRP =Convert.ToInt64(txtMRP.Text);
            smart.other_features = txtOtherfeatures.Text;
            smart.IEMI_no = Convert.ToInt64(txtIEMI_no.Text);
            smart.launched_year = Convert.ToInt64(ddlLaunch_year.SelectedValue.ToString());
            smart.manufacture_date = (Convert.ToInt64(txtmanufactureDate.Text)).ToString();
            smart.market_reputation = txtMarketReputation.Text;
            smart.other_features = txtOtherfeatures.Text;
            smart.bluetooth = CheckBox1.Checked.ToString();
            smart.wifi_infrared = CheckBox2.Checked.ToString();
            smart.three_g_status = CheckBox3.Checked.ToString();
             
            smart.SaveRecords();
            

            
        
    }}
    }


